"""
    集合 {元素1,元素2...}
    长度：集合元素的个数
    无序 不重复

    列表去重：
        列表转换为集合  再将集合转换为列表

"""

set1 = {1,2,434,343,4}
print(set1)

set2 = set() # 定义空集合
print(set2)

set3 ={"a","d","x","adad","xasfd","a3r"}
print(set3)

set3.add("abc")
print(set3)

set1.update({110,120,1,2})
print(set1)

set1.remove(110)
print(set1)

alist =[1,1,1,1,233,2,12,23,23,2,3]
aset =set(alist)

blist = list(aset)
print(blist)